package com.treasure.mall.zbqmallapi.vo.user;

import com.treasure.mall.biz.entity.user.UserPO;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *
 * <p>
 * +---------------------------------------------------------
 * * @package: com.treasure.mall.zbqmallapi.vo.user
 * * @author: guomw (guomwchen@foxmail.com)
 * * @date: 2020/7/28 10:06 上午
 * * @since: V1.0.0
 * +---------------------------------------------------------
 * 注意：本内容仅限于内部传阅，禁止外泄以及用于其他的商业目的
 * 
 */
@Data
@NoArgsConstructor
public class UserBaseVO {

    private Long userId;
    /**
     * 昵称反正就是昵称；可能是自定义昵称 也可能是微信昵称
     */
    private String nickName;
    /**
     * 头像地址
     */
    private String avatar;
    /**
     * 粉丝数量
     */
    private long fansCount;

    public UserBaseVO(UserPO userPO) {
        this.userId = userPO.getUserId();
        this.nickName = userPO.getNickName();
        this.avatar = userPO.getAvatar();
        this.fansCount = userPO.getFansCount();
    }
}
